@layout("/common/_container.html",{plugins:["ztree"],js:["/assets/modular/meta_data/quartz/informations/informations.js"]}){

<div class="layui-body-header">
    <span class="layui-body-header-title">任务管理</span>
</div>

<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-xs12">
            <div class="layui-card">
                <div class="layui-card-body">
                    <div class="layui-form toolbar">
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <input id="name" class="layui-input" type="text" placeholder="名称"/>
                            </div>
                            <div class="layui-inline">
                                <button id="btnSearch" class="layui-btn icon-btn"><i class="layui-icon">&#xe615;</i>搜索</button>
                                @if(shiro.hasPermission("/task/info/add")){
                                <button id="btnAdd" class="layui-btn icon-btn"><i class="layui-icon">&#xe654;</i>新增定时任务</button>
                                @}
                                <button id="btnExp" class="layui-btn icon-btn"><i class="layui-icon">&#xe67d;</i>导出</button>
                            </div>
                        </div>
                    </div>
                    <table class="layui-table" id="informationsTable" lay-filter="informationsTable"></table>
                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/html" id="tableBar">
    @if(shiro.hasPermission("/task/info/option_task")){
    {{# if(d.frozenStatus==='UNFROZEN'){ }}
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="option_task">暂停</a>
    {{# } }}
    {{# if(d.frozenStatus==='FROZEN'){ }}
    <a class="layui-btn layui-btn layui-btn-xs" lay-event="option_task">启动</a>
    {{# } }}

    @}
    @if(shiro.hasPermission("/task/info/start_now")){
    <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="start_now">立即执行一次</a>
    @}
    @if(shiro.hasPermission("/task/info/edit")){
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="edit">修改</a>
    @}
</script>
@}